/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package compilador;

/**
 *
 * @author Melinton
 */
public class Token 
{
    //--------------------------------------------------------------------------
    // ATRIBUTOS
    //--------------------------------------------------------------------------
    private String text;
    private int type;
    
    //--------------------------------------------------------------------------
    // CONSTRUCTOR
    //--------------------------------------------------------------------------
    public Token(int tipo, String txt)
    {
        text = txt;
        type = tipo;
    }
    
    //--------------------------------------------------------------------------
    // METODOS
    //--------------------------------------------------------------------------
    public void setText(String t) { text = t; }
    public String getText() { return text; }
    public void setType(int t) { type=t; }
    public int getType() { return type; }
}
